<?php
namespace App\Services\Wechat;
/**
 * @author: Gardennet
 * @date: 16-12-15
 * @email: lwp8800@sina.com
 */

use Illuminate\Http\Request;
use App\Facades\WechatConfigFacades;

/**
 * 微信服务类
 * Class WechatService
 * @package App\Services\Wechat
 */
class WechatService implements WechatServiceInterface
{
    protected $request;

    public function  __construct(Request $request)
    {
        $this->request = $request;
    }

    use WechatMpTrait;
    use WechatOpenTrait;
    use WechatMessage;

    protected function getWechatInstance()
    {
        return WechatConfigFacades::getWechatPublicObject();
    }

    protected function getOpenInstance()
    {
        return WechatConfigFacades::getWechatOpenObject();
    }
}